package com.ls.thread.car;

public class CarTest {
	
	public static void main(String[] args) {
		
		//100线程
		Car[] c=new Car[100];
		Thread[] t=new Thread[100];
		for(int i=0;i<100;i++){
			c[i]=new Car();
			t[i]=new Thread(c[i],"car"+(i+1));
			
		}
		
		
		for(int i=0;i<100;i++){
			t[i].start();
		}
		
		
		
		
				
	}

}
